﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Shopping
{
	public interface IShoppingCart
	{
        void AddItemToCart(int shoppingId, bool bought, int foodIngredientId, int userId, int quantity, ref Model.NutriLeafDBEntities context);

        void RemoveItemFromCart(int shoppingCartId, ref Model.NutriLeafDBEntities context);

        void RemoveRecentItemFromCart(int userId, ref Model.NutriLeafDBEntities context);

        void BuyAllItemsInShoppingEvent(int shoppingId, ref Model.NutriLeafDBEntities context);

        List<Model.ShoppingCart> GetAllShoppingCartForShoppingEvent(int shoppingId, ref Model.NutriLeafDBEntities context);

        List<Model.FoodIngredient> GetAllFoodIngredientsInShoppingEvent(int shoppingId, ref Model.NutriLeafDBEntities context);

        Model.ShoppingCart GetShoppingCartItem(int shoppingCartItem, ref Model.NutriLeafDBEntities context);

        void Update(Model.ShoppingCart cart, ref Model.NutriLeafDBEntities context);

	}
}